package com.qf.android.huihui.adapter.shopping;

import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;

import com.qf.android.huihui.common.IClickListern;

/**
 * Created by 韩爽 on 2017/1/14.
 */

public class ShoppingBaseAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
    public IClickListern listern=null;
    @Override
    public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        return null;
    }

    @Override
    public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {

    }

    @Override
    public int getItemCount() {
        return 0;
    }


    public void setMyClickListener(IClickListern listener) {
        this.listern = listener;
    }
    class MyHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
        public MyHolder(View itemView,IClickListern listern) {
            super(itemView);
            itemView.setOnClickListener(this);
        }

        @Override
        public void onClick(View v) {

        }
    }
}
